package com.netease.image.video;

import android.graphics.Bitmap;

public class f
  implements an
{
  private final ai[] a;

  public f(int paramInt)
  {
    this.a = new ai[paramInt];
    for (int i = 0; i < this.a.length; i++)
      this.a[i] = new ai();
  }

  private ai c(int paramInt)
  {
    ai[] arrayOfai = this.a;
    int i = arrayOfai.length;
    int j = 0;
    ai localai;
    if (j < i)
    {
      localai = arrayOfai[j];
      if (paramInt != localai.a);
    }
    while (true)
    {
      return localai;
      j++;
      break;
      localai = null;
    }
  }

  /** @deprecated */
  public Bitmap a(int paramInt)
  {
    monitorenter;
    try
    {
      ai localai = c(paramInt);
      if (localai != null)
      {
        localBitmap = localai.b;
        return localBitmap;
      }
      Bitmap localBitmap = null;
    }
    finally
    {
      monitorexit;
    }
  }

  /** @deprecated */
  public void a()
  {
    monitorenter;
    try
    {
      for (ai localai : this.a)
      {
        if (localai.b != null)
          localai.b.recycle();
        localai.a();
      }
      monitorexit;
      return;
    }
    finally
    {
      localObject = finally;
      monitorexit;
    }
    throw localObject;
  }

  /** @deprecated */
  public void a(int paramInt, Bitmap paramBitmap)
  {
    monitorenter;
    while (true)
    {
      Object localObject2;
      int j;
      int k;
      try
      {
        ai localai = c(paramInt);
        if (localai != null)
          return;
        localObject2 = null;
        ai[] arrayOfai = this.a;
        int i = arrayOfai.length;
        j = 0;
        k = -1;
        if (j >= i)
          break label150;
        localObject3 = arrayOfai[j];
        if (((ai)localObject3).a == -1)
        {
          if (((ai)localObject3).b == null)
            continue;
          ((ai)localObject3).b.recycle();
          ((ai)localObject3).a = paramInt;
          ((ai)localObject3).b = paramBitmap;
          continue;
        }
      }
      finally
      {
        monitorexit;
      }
      int m = Math.abs(paramInt - ((ai)localObject3).a);
      int n = m;
      if (n > k);
      for (Object localObject4 = localObject3; ; localObject4 = localObject2)
      {
        j++;
        localObject2 = localObject4;
        k = n;
        break;
        n = k;
      }
      label150: Object localObject3 = localObject2;
    }
  }

  /** @deprecated */
  public void a(Bitmap paramBitmap)
  {
    monitorenter;
    try
    {
      ai[] arrayOfai = this.a;
      int i = arrayOfai.length;
      int j = 0;
      if (j < i)
      {
        ai localai = arrayOfai[j];
        if (localai.a != -1)
        {
          Bitmap localBitmap = localai.b;
          if (localBitmap != paramBitmap);
        }
      }
      while (true)
      {
        return;
        j++;
        break;
        paramBitmap.recycle();
      }
    }
    finally
    {
      monitorexit;
    }
    throw localObject;
  }

  /** @deprecated */
  public boolean b(int paramInt)
  {
    monitorenter;
    try
    {
      ai localai = c(paramInt);
      if (localai != null)
      {
        i = 1;
        return i;
      }
      int i = 0;
    }
    finally
    {
      monitorexit;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.image.video.f
 * JD-Core Version:    0.6.0
 */